@primary-color: #0077ad;
@text-color: #fff;
@bg-color: linear-gradient(0deg, rgba(49, 82, 89, 0.06), rgba(94, 161, 159, 0.2));

[data-theme='dark'] {
  .ant-radio-button-wrapper {
    background: @bg-color;
  }
  .ant-picker {
    background: @bg-color;
  }
  .ant-input-affix-wrapper {
    background-color: transparent;
    border: 1px solid rgba(47, 171, 255, 0.3);
  }
  .ant-input {
    background-color: transparent;
  }
  .ant-select .ant-select-selector {
    background-color: transparent;
  }
  .ant-btn-default {
    background-color: transparent;
  }

  .ant-table-striped .antd-table-striped td {
    background-color: rgb(29, 29, 29);
  }

  .amap-sug-result {
    background: rgba(11, 26, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    .auto-item {
      color: #ffffff;
      &:hover {
        color: #333333;
      }
    }
  }

  .ant-modal-root {
    .ant-modal-wrap.antd-dialog-wrap {
      .ant-modal.antd-dialog-modal {
        .ant-modal-content {
          border: 1px solid rgba(47, 171, 255, 0.3);
          .ant-modal-header {
            border-bottom: 1px solid rgba(47, 171, 255, 0.3);
          }
          .ant-modal-footer {
            border-top: 1px solid rgba(47, 171, 255, 0.3);
          }
        }
      }
    }
  }

  .static-data-form {
    &.ant-form {
      .ant-row.ant-form-item {
        .ant-col.ant-form-item-label {
          & > label {
            color: #ffffff;
          }
        }
        .ant-input {
          color: #ffffff;
        }
      }
    }
  }
  // 登录页面
  .login {
    .ant-input-affix-wrapper .anticon.ant-input-password-icon {
      color: #000000;
    }
    .ant-form-item {
      color: #000000;
    }
    .ant-input,
    .ant-input-password,
    .ant-checkbox-inner,
    .ant-select > .ant-select-selector {
      &,
      &:hover {
        border-color: #bbbec2;
        background: #f0f0f0;
        color: #333333;
      }
    }
    .ant-checkbox-wrapper {
      color: #000000;
    }
    .ant-checkbox-checked {
      .ant-checkbox-inner {
        background: #3c89e8;
      }
    }
    .ant-input-password-icon {
      color: #000000;
    }
    .ant-btn-primary {
      &,
      &:hover {
        color: #e7e7e7;
        background: #316ad1;
      }
      &[disabled] {
        &,
        &:hover {
          filter: grayscale(1);
        }
      }
    }
  }
  // 主题按钮
  .ant-btn-primary {
    color: #ffffff;
    background-color: @primary-color;
  }
  .ant-btn-link {
    color: @primary-color;
  }
  .ant-tree-treenode-selected {
    .ant-tree-node-content-wrapper {
      background-color: @primary-color !important;
    }
  }
  .ant-empty-img-simple {
    &-ellipse {
      fill: #e8e8e8;
      fill-opacity: 0.25;
      stroke: #e8e8e8;
      stroke-opacity: 0.25;
    }

    &-g {
      fill: none;
      stroke: #e8e8e8;
    }

    &-path {
      fill: #e8e8e8;
      stroke: #e8e8e8;
    }
  }

  /*滚动条整体部分*/
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: rgba(157, 165, 183, 0.1);
  }
  /*滚动条的轨道*/
  ::-webkit-scrollbar-track {
    background: rgba(157, 165, 183, 0.1);
  }
  /*滚动条里面的小方块，能向上向下移动*/
  ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: transparent dashed 4px;
    background: rgba(157, 165, 183, 0.4);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 165, 183, 0.7);
  }
  ::-webkit-scrollbar-thumb:active {
    background: rgba(157, 165, 183, 0.7);
  }
  /*边角，即两个滚动条的交汇处*/
  ::-webkit-scrollbar-corner {
    background: rgba(157, 165, 183, 0.7);
  }
}
